{template Public:Page:header}

<div class="container">
  <div class="row">
  
	<div class="col-lg-2">
      <div class="row">
        <div class="well">
        <div class="row" style="padding-left:5px;padding-right:5px;">

              <table class="table table-hover">
                    <thead>
                        <tr>
                            <th>
                                <strong>案例分类</strong>
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                  	 {if $categoryarr}
                         {foreach $categoryarr $category}
                            <tr>
                                <td>
                                   <a href="/cases/{echo $category['route']}"{if $category['route']==$route} class="btn-primary"{/if}>{echo $category['name']}</a>
                                </td>
                            </tr>
                         {/foreach}
                     {/if}
                    </tbody>
                </table>
                       

      	</div>        
                                
        </div>
      </div>
    </div>
    
    <div class="col-lg-10 well-col-pl-30">
      <div class="row">
       <div class="well">
         <h3>{if $name}{echo $name}案例{else}最新案例{/if}</h3>
         <table class="table table-hover">
            <tbody>
          	{if $list}
            	{foreach $list $key=>$value}
                <tr>
                    <td>
                      <a href="/cases/{echo $value['id']}" target="_blank">{if $value['picture']}<img src="/{echo $value['picture']}"/>{/if} {echo $value['subject']}</a>
                    </td>
                    <td>
                    {echo FormatDate("Y-m-d H:i",$value['dateline'])}
                    </td>
                    <td>
                    {echo $value['show_number']}
                    </td>
                </tr>
               {/foreach}
 			{/if}  
            </tbody>
         </table>
         
         {if $page}
         <div class="dataTables_paginate paging_bootstrap text-right"><ul class="pagination">{echo $page}</ul></div>
         {/if}
         
       </div>
    </div>
  </div>
</div>
</div>

{template Public:Page:footer}